package com.njupt.webapp.tags;

import javax.servlet.jsp.JspException;

import org.springframework.jdbc.core.JdbcTemplate;

public class SqlNjuptDelete extends SqlBaseTag{ 
	
	public int doStartTag() throws JspException {
        String sqlx = (String) TagUtils.evaluate("sql",sql, String.class,this,pageContext);
        JdbcTemplate template = super.getTemplate();
		try{
			Object o = template.update(sqlx);
			TagUtils.saveToContext(this,pageContext,scope,o);
		}catch(Exception e){
			e.printStackTrace();
		}

        return super.doStartTag();
  
	}

	

}
